package com.ly.heart.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.KingDocTypeEntity;

/**
 * 金蝶-财务模块-单据类型Service接口
 * @author wutao
 * @date 2024-06-24
 */
public interface IKingDocTypeService extends IService<KingDocTypeEntity> {
    /**
     * 查询金蝶-财务模块-单据类型
     * @param id 金蝶-财务模块-单据类型ID
     * @return 金蝶-财务模块-单据类型
     */
     KingDocTypeEntity selectKingDocTypeEntityById (String id);

    /**
     * 查询金蝶-财务模块-单据类型列表
     * @param kingDocTypeEntity 金蝶-财务模块-单据类型
     * @return 金蝶-财务模块-单据类型集合
     */
     List<KingDocTypeEntity> selectKingDocTypeEntityList (KingDocTypeEntity kingDocTypeEntity);

    /**
     * 查询单据类型列表
     * @param kingDocTypeEntity
     * @return
     */
     List<KingDocTypeEntity> queryTable (KingDocTypeEntity kingDocTypeEntity);

    Integer queryCount (KingDocTypeEntity kingDocTypeEntity);

    /**
     * 通过parentCode查询所有子，用于新增各单据界面的选择
     * @param kingDocTypeEntity
     * @return
     */
     List<KingDocTypeEntity> queryChild (KingDocTypeEntity kingDocTypeEntity);

    /**
     * 新增金蝶-财务模块-单据类型
     * @param kingDocTypeEntity 金蝶-财务模块-单据类型
     * @return 结果
     */
    AjaxResult insertKingDocTypeEntity (KingDocTypeEntity kingDocTypeEntity);

    /**
     * 修改金蝶-财务模块-单据类型
     * @param kingDocTypeEntity 金蝶-财务模块-单据类型
     * @return 结果
     */
    AjaxResult updateKingDocTypeEntity (KingDocTypeEntity kingDocTypeEntity);

    /**
     * 批量删除金蝶-财务模块-单据类型
     * @param ids 需要删除的金蝶-财务模块-单据类型ID
     * @return 结果
     */
    AjaxResult deleteKingDocTypeEntityByIds (String[] ids);

    /**
     * 删除金蝶-财务模块-单据类型信息
     * @param id 金蝶-财务模块-单据类型ID
     * @return 结果
     */
    AjaxResult disabled (String id);
}
